package cn.CommonResult;

import io.swagger.annotations.ApiModelProperty;

public class PageQueryDto {
    @ApiModelProperty("页码")
    private Integer pageNum;
    @ApiModelProperty("每页大小")
    private Integer pageSize;

    public PageQueryDto() {
    }

    public Integer getPageNum() {
        return this.pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public int getStart() {
        return (this.pageNum - 1) * this.pageSize;
    }
}